package pl.edu.agh.persdoc;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;

public class Util {


	static Date convertStringToDate(String text) {
		
		DateFormat df=DateFormat.getDateInstance();
		Date resultDate=null;
		try {
			System.out.println("DatE "+text);
			resultDate=df.parse(text);
		} catch (ParseException e){ 
			e.printStackTrace();
		}
		return resultDate;
		
	}

}
